
import httpRequest from '@/utils/httpRequest'
// 列表
export function getList (data) {
    return httpRequest({
        url: '/financeCompanyAccount/list',
        method: 'get',
        params: data
    })
}

// 详情
export function getById (data) {
    return httpRequest({
        url: '/financeCompanyAccount',
        method: 'get',
        params: data
    })
}
// 删除
export function del (data) {
    return httpRequest({
        url: '/financeCompanyAccount/delete',
        method: 'post',
        data: data
    })
}
// 新增或修改
export function save (data) {
    return httpRequest({
        url: '/financeCompanyAccount',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}

// 修改状态
export function updateState (data) {
    return httpRequest({
        url: '/financeCompanyAccount/updateStatus',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}

// 转出金额是否小于等于余额
export function isIntLteMoney (data) {
    return httpRequest({
        url: '/financeCompanyAccount/isIntLteMoney',
        method: 'get',
        params: data
    })
}
// 账户详情弹窗
export function getTableInfo (data) {
    return httpRequest({
        url: '/financeCompanyAccount/getTableInfo',
        method: 'get',
        params: data
    })
}

// 转出金额是否小于等于余额
export function getAccountMoneyByIdAndType (data) {
    return httpRequest({
        url: '/financeCompanyAccount/getAccountMoneyTip',
        method: 'get',
        params: data
    })
}
